﻿using HZH_Controls.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Sugar.Enties;
using Seating.utils;
namespace Seating
{
    public partial class Admin_Main_Form : Form
    {
        public Admin_Main_Form()
        {
            InitializeComponent();
        }

        private void Admin_Main_Form_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 注销
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripMenuItem_logout_Click(object sender, EventArgs e)
        {
            this.Hide();
            FormSigletonUtil.GetLoginFormInstance().Show();
        }


        /// <summary>
        /// 学生信息管理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripMenuItem_student_manage_Click(object sender, EventArgs e)
        {
            Form form = FormSigletonUtil.GetStudentManageFromInstance();
            form.MdiParent = this;
            form.Show();
        }

        private void 预约记录ToolStripMenuItem_Click(object sender, EventArgs e)
        {
          Form form =  new Reservation_Manage_From();
          form.MdiParent = this;
          form.Show();
        }

        private void 闭馆管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form form = new Library_Close_Strategy_Form();
            form.MdiParent = this;
            form.Show();
        }
    }

}
